<?php

include('scripts/blocks.php');
include('scripts/pages.php');
include('scripts/func.php');

sess();

if (empty($_GET['page']))
  $page = 'accueil';
 else
   $page = $_GET['page'];


head($page);


if (!empty($_SESSION['mdp']))
  {
    menu();
    $page();
  }
 else
   askmdp();



footer();

?>